package com.j.lemon.learn.onlytest;

import com.j.lemon.learn.basic.object.justtest.Employee;
import com.j.lemon.learn.basic.utils.SeqUtils;
import org.junit.jupiter.api.Test;

import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;

/**
 * @Author lijunjun
 * @Date 2019-05-06 09:35
 * @Description
 */
class Test1 {
    @Test
    void test1(){
        Employee employee = new Employee(18,"zhang3");
        Employee employee1 = new Employee(19,"li4");
        List<Employee> list = new ArrayList<>();
        list.add(employee);
        list.add(employee1);

        list.forEach(e->{
            e.setAge(20);
        });

        System.out.println(list);


        do {
            System.out.println("1");
        }while (true);
    }

    @Test
    void test2(){
        System.out.println(SeqUtils.genSeqId());
    }
}
